<%@page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@page	import="java.util.ArrayList"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%@page import="java.lang.Integer"%>
<%@page import="java.lang.String"%>
<%@page	import="com.point.community.bean.dwzPageData"%>
<script src="/js/treeTable/jquery.treeTable.js" type="text/javascript"> </script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%
	 dwzPageData dwzData;
     if(request.getSession().getAttribute("sysBackupPolicyDwzData")!=null)
     	dwzData =(dwzPageData)request.getSession().getAttribute("sysBackupPolicyDwzData"); 
     else
     	dwzData = new dwzPageData();
%>
<div class="pageHeader">
    <form id="pagerForm" rel="pagerForm" onsubmit="return navTabSearch(this);" action="webQueryAllBackupPolicy" method="post">
        <input type="hidden" name="pageNum" value="<%=dwzData.currentPage%>" />
        <input type="hidden" name="numPerPage" value="<%=dwzData.numPerPage%>" /> 
        <input type="hidden" name="method" value="page" />
        <input type="hidden" name="all" value="1" />
        <div class="searchBar">
        </div>
    </form>
</div>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
            <li><a class="add" href="sysbackuppolicyupdate.jsp?action=add" target="navTab" ><span>添加新记录</span></a></li>
            <li class="line">line</li>
        </ul>
    </div>
    <table class="table" layoutH="108">
		<thead>
		<tr>
			    <th width="40" style="text-align:center;vertical-align:middle">序号</th>
				<th width="100" style="text-align:center;vertical-align:middle">备份类型</th>
				<th width="120" style="text-align:center;vertical-align:middle">计划备份时间</th>
				<th width="120" style="text-align:center;vertical-align:middle">备注</th>
				<th width="140"  style="text-align:center;vertical-align:middle">执行时间</th>
				<th width="120" style="text-align:center;vertical-align:middle">操作</th> 
			</tr>
		</thead>
		<tbody>
			<% 
				int nIndex = 1;
			%>
			<s:iterator value="#session.sysBackuppolicyList" status="m">
				<tr target="sid_user" rel="<s:property value="mainid" />">
				 	<td ><%=nIndex %></td> 
					<% 
						nIndex ++;
					%> 
					<td>
						<s:if test="backuptype==0">每天</s:if>
						<s:if test="backuptype==1">每周一</s:if>
						<s:if test="backuptype==2">每月1日</s:if>
						<s:if test="backuptype==3">实时(一次性)</s:if>
					</td> 
					<td><s:property value="backuptime" /></td>
			        <td ><s:property value="remark" /></td> 
					<td><s:property value="lasttime" /></td>
					<td>
					  <a class="edit" href="./webQueryOneBackupPolicy?action=edit&mainid=<s:property value="mainid"/>" target="navTab">修改</a>
						&nbsp;&nbsp;&nbsp;
					  <a  class="delete" href="./deleteBackupPolicy?mainid=<s:property value="mainid"/>"  title="确定要删除吗?" target="ajaxTodo" refresh="true">删除</a>
					</td> 	
				</tr>
			</s:iterator>
		</tbody>
	</table>
     <div class="panelBar">
        <div class="pages">
            <span>显示</span>
            <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
                <option value="10" <s:if test="10 == #session.numPerPage">selected="selected"</s:if>>10</option>
                <option value="20" <s:if test="20 == #session.numPerPage">selected="selected"</s:if>>20</option>
                <option  value="50"  <s:if test="50 == #session.numPerPage">selected="selected"</s:if>>50</option>
                <option  value="100"  <s:if test="100 == #session.numPerPage">selected="selected"</s:if>>100</option>
            </select>
            <span>条，共<%=dwzData.totalCount%>条</span>
        </div>
        <div class="pagination" targetType="navTab" totalCount= "<%=dwzData.totalCount%>" numPerPage="<%=dwzData.numPerPage%>" pageNumShown="<%=dwzData.pageNumShown%>" currentPage="<%=dwzData.currentPage%>" ></div>
    </div>
</div>